package com.message.service;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2018/3/29 0029.
 * 消息通道接口
 */
@Component
public interface ServiceMessageChannel {
    /**
     * 注意jdk8 接口里面定义成员变量属性是 public static final
     */
    String OUTPUT_TEST_SERVICE = "outputTestService";
    String OUTPUT_INTEGRATION_TESTING="outputIntegrationTesting";



    /**
     * 发送测试服务
     * @return
     */
    @Output(OUTPUT_TEST_SERVICE)
    MessageChannel outputTestService();

    /**
     * 发送jenkins集成测试中心
     * @return
     */
    @Output(OUTPUT_INTEGRATION_TESTING)
    MessageChannel outputIntegrationTesting();


}
